package cn.zgwj.order.service;

import cn.zgwj.basic.service.IBaseService;
import cn.zgwj.basic.util.PageList;
import cn.zgwj.order.domain.AdoptOrder;
import cn.zgwj.order.query.AdoptOrderQuery;
import cn.zgwj.user.domain.Logininfo;

import java.util.Map;

public interface IAdoptOrderService extends IBaseService<AdoptOrder> {
    /**
     * 领养订单下单业务
     * @param params
     * @param currentLogininfo
     * @return
     */
    String submit(Map<String, Object> params, Logininfo currentLogininfo);

    /**
     * 领养订单后端查询接口
     * @param query
     * @param currentLogininfo
     * @return
     */
    PageList<AdoptOrder> admin(AdoptOrderQuery query, Logininfo currentLogininfo);

    /**
     * 领养订单前端个人中心查询接口
     * @param query
     * @param currentLogininfo
     * @return
     */
    PageList<AdoptOrder> user(AdoptOrderQuery query, Logininfo currentLogininfo);
}
